﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;

namespace DeepTalkRenderDummy
{
    class Program
    {
        /// <summary>
        /// Dummy program to help with running the rendering of talks
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.WriteLine("Main render dummy starting. Arguments: ");
            foreach (var arg in args)
            {
                Console.WriteLine("Argument: " + arg);
            }

            ///
            /// Create the (simple) meta data and write it out
            /// 

            var meta = new DeeptalkConverterLib.RenderJobMetaData();
            meta.MeetingEnd = DateTime.Now;
            meta.MeetingStart = DateTime.Now - TimeSpan.FromDays(2);
            meta.MeetingTitle = "Test Meeting";
            meta.NumberOfTalks = 10;
            meta.NumberOfUpdatedTalks = 0;

            {
                XmlSerializer ser = new XmlSerializer(typeof(DeeptalkConverterLib.RenderJobMetaData));
                using (var tw = new FileInfo(args[1] + "\\renderJobMetaData.xml").CreateText())
                {
                    ser.Serialize(tw, meta);
                    tw.Close();
                }
            }
        }
    }
}
